/* 主页样式 - 暗黑主题 */

/* 基础样式 */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 导航栏 */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid #333;
}

.header-nav h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 容器样式 */
.container {
    background: #2c2c2c;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    border: 1px solid #333;
}

.container h2 {
    color: #64b5f6;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

/* 文件上传区域 */
.file-upload-container {
    border: 2px dashed #444;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #262626;
}

.file-upload-container:hover {
    border-color: #64b5f6;
    background-color: #2c2c2c;
}

.file-upload-container.dragover {
    background-color: #333;
    border-color: #64b5f6;
    transform: scale(1.01);
}

.upload-instructions {
    color: #bdbdbd;
    margin: 10px 0;
    line-height: 1.6;
}

.upload-instructions small {
    display: block;
    margin-top: 8px;
    color: #757575;
}

.file-list {
    text-align: left;
    margin-top: 15px;
    max-height: 150px;
    overflow-y: auto;
    background: #262626;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #333;
}

.file-list-item {
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    font-size: 14px;
    color: #bdbdbd;
}

.file-list-item:last-child {
    border-bottom: none;
}

.file-count {
    color: #757575;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}

/* 脚本列表 */
.script-list {
    list-style: none;
    padding: 0;
}

.script-item {
    background: #262626;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.script-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    border-color: #444;
}

.script-info {
    flex-grow: 1;
    padding-right: 20px;
}

.script-info strong {
    font-size: 18px;
    color: #64b5f6;
    display: block;
    margin-bottom: 10px;
}

/* 选择器样式 */
.script-file-select, .venv-select {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #262626;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
}

.script-file-select label, .venv-select label {
    margin: 0;
    font-size: 14px;
    color: #bdbdbd;
    min-width: 80px;
    font-weight: 500;
}

.run-file-select, .venv-select select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    max-width: 300px;
    transition: all 0.3s ease;
}

.run-file-select:focus, .venv-select select:focus {
    border-color: #64b5f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

/* 按钮样式 */
.script-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
    border: none;
    color: #fff;
}

.run-btn {
    background: linear-gradient(135deg, #2979ff, #1565c0);
}

.run-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-1px);
}

.manage-btn {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

.manage-btn:hover {
    background: linear-gradient(135deg, #e65100, #bf360c);
    transform: translateY(-1px);
}

.download-btn {
    background: linear-gradient(135deg, #00897b, #00695c);
}

.download-btn:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-1px);
}

.delete-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    transform: translateY(-1px);
}

/* 输出显示 */
.output-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
    white-space: pre-wrap;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #bdbdbd;
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    border-color: #64b5f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .script-item {
        flex-direction: column;
    }
    
    .script-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .script-info {
        padding-right: 0;
    }
    
    .run-file-select, .venv-select select {
        max-width: 100%;
    }
} 